projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
789bec4
)
xend: remove PCI device listing from NetBSD, since it's Linux
author
Roger Pau Monne
<roger.pau@entel.upc.edu>
Sat, 23 Jul 2011 07:58:37 +0000
(08:58 +0100)
committer
Roger Pau Monne
<roger.pau@entel.upc.edu>
Sat, 23 Jul 2011 07:58:37 +0000
(08:58 +0100)
specific code.
Signed-off-by: Roger Pau Monne <roger.pau@entel.upc.edu>
tools/python/xen/util/pci.py
patch
|
blob
|
history
diff --git
a/tools/python/xen/util/pci.py
b/tools/python/xen/util/pci.py
index b889d1816e4562b0f70a3dedc6508fdf54fa29ed..98bea1aeadc18c55fe45fa4a3b9705f9d98e3032 100644
(file)
--- a/
tools/python/xen/util/pci.py
+++ b/
tools/python/xen/util/pci.py
@@
-462,6
+462,7
@@
def find_sysfs_mnt():
return None
def get_all_pci_names():
+ if not sys.platform.startswith('linux'): return []
sysfs_mnt = find_sysfs_mnt()
if sysfs_mnt is None:
return None